import { Module } from "@nestjs/common";
import { SchoolModule } from "./service/school/school.module";
import { TypeOrmModule } from "@nestjs/typeorm";
import { School } from "./models/school.model";



@Module({
  imports:[
    SchoolModule,
    TypeOrmModule.forRoot({
      type: 'mysql',
      host: '127.0.0.1',
      port: 3306,
      username: 'long3714',
      password: '123456',
      database: 'school',
      entities: [],
      synchronize: true,
      autoLoadEntities: true,
    }),
  ]
})
export class AppModule{ }